package com.ctl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctl.dto.CategoryDTO;
import com.ctl.entity.Category;
import com.ctl.service.CategoryService;
import com.ctl.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author stars
* @description 针对表【category(分类)】的数据库操作Service实现
* @createDate 2023-02-24 21:01:12
*/
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category>
    implements CategoryService{
    @Autowired
    private CategoryMapper mapper;
    @Override
    public List<CategoryDTO> getCategoryAll() {
        return mapper.getCategoryAll();
    }
}




